<?php
/*******************************************************************************
 *
 *  Name: Headerview
 *
 *  Date: 2012-04-25
 *  
 *  Description: this is the template for all the pages and it starts here
 *  
 *  Author: Hayden Waisanen
 *  
 *  Todo:
 *     NONE
 *
 *  Modification History:  
 * 
 *   Date         Name
 *  ----------   --------------
 *  2012-04-25   HAYDEN WAISANEN
 *  2012-04-23   HAYDEN WAISANEN
 *  2012-04-23   HAYDEN WAISANEN
 *  2012-04-23   HAYDEN WAISANEN
 * 
 *****************************************************************************/
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta content="en-us" http-equiv="Content-Language">
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
<title>Black Hills Power: Power Outage Management System</title>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="iefix/ie7hack.css">
<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>application/theme/maintheme.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>application/theme/menu/mainmenu.css">
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="<?php echo base_url(); ?>application/theme/menu/mainmenu.js"></script>
<script type="text/javascript">
page = "sdaf";
$(document).ready(function () {
   $.ajax({
      type: 'POST',
      url: '<?php echo base_url(); ?>index.php/user/whosonline/',
      success: function(data) {
         $('#whosonline')[0].innerHTML = data;
      },
      error: function() {
         $('#whosonline')[0].innerHTML = "Unable to get who is online";
      }
});
});

</script>

<!--<link rel="stylesheet" type="text/css" href="contentstyle/maincontenttheme.css" /> -->
</head>

<body >

<div id="main">
<div id="maincenter">
<a href="<?php echo base_url(); ?>index.php/dashboard">
<div id="banner">
<div id="bannerimage"></div>
</div>
</a>
<?php 
if( isset($menu))
{
   echo "<div id='menu_node'><div id='menu'>";
   echo $menu; 
   echo "</div><h4>Who's Online</h4><div id='whosonline'></div></div>";
}
?>
<div id="content">
